<?php
$hotel   = $this->hotel;
$country = $this->country;
$listCountry = $this->listCountry;
?>
<div class="wrapper-content">
    <div class="top-title">
        <div class="content-title">
            <h2><?php echo $this->translate('Hotel & Resort')
                .' <img src="/static/default/images/bulleted.png" class="bulleted" style="margin-bottom:2px"> '
                . $this->region['name']; ?>
            </h2>
        </div>
    </div>
    <!-- column left -->
    <div class="span12" id="content-right-2">
        <div class="block" style="padding-bottom: 0px;border: none;margin-left:15px;">
        <?php if($listCountry): ?>
        <?php foreach($listCountry as $k => $v): ?>
			<div class="block-content">
			    <div class="block-hotel-tilte">
			        <div style="width:12px;float:left;margin-top:12px;">
				        <img src="/static/default/images/bulleted.png" class="bulleted" />
				    </div>
				    <div style="float:left;<?php echo ($v['area']) ? "width: 90px;" : "width:120px;"; ?>">
				        <h4><a href="/hotel"><?php echo $v['name'] ?></a></h4>
				    </div>
				</div>
				<div class="block-hotel-content">
					<?php if($v['area']): ?>
						<table style="margin-left:-10px;">
							<?php foreach($v['area'] as $kA => $vA): ?>
								<tr>
									<td style="min-width:120px;width:auto"><b><?php echo trim($vA['name']); ?> : </b></td>
									<td>
										<?php foreach($vA['list_region'] as $key => $value): ?>
					            			<div class="block-content-hotel-list-vn">
					            				<a href="<?php echo '/hotel/'.$value['id'].'/'.str_replace(' ', '-' ,trim($value['name'])) .'.html';?>" style="text-decoration: underline;"><?php echo $value['name']; ?></a>
					            				<?php if(($key + 1) != count($vA['list_region'])): ?>
					            				    <p class="inline-space">|</p>
					            				<?php endif; ?>
					            			</div>
					        			<?php endforeach; ?>
									</td>
								</tr>
							<?php endforeach; ?>	
						</table>
					<?php else: ?>
	        			<?php if($v['list_region']): ?>
	        			<?php foreach($v['list_region'] as $key => $value): ?>
	            			<div class="block-content-hotel-list">
	            				<a href="<?php echo '/hotel/'.$value['id'].'/'.str_replace(' ', '-' ,trim($value['name'])) .'.html';?>" style="text-decoration: underline;"><?php echo $value['name']; ?></a>
	            				<?php if(($key + 1) != count($v['list_region'])): ?>
	            				    <p class="inline-space">|</p>
	            				<?php endif; ?>
	            			</div>
	        			<?php endforeach; ?>
	        			<?php endif; ?>
        			<?php endif; ?>
    			</div>
			</div>
		<?php endforeach; ?>
		<?php endif; ?>
	</div><!-- //end hotel -->

        <!-- detail for region hotel -->
        <?php if($hotel): ?>
        <?php foreach($hotel as $key => $value): ?>
        <?php if($value['list_hotel']): ?>
    	<div class="content-right-2-title hotel-type-item">
    		<h4><?php echo $value['title']; ?></h4>
    	</div>
    	<div class="content-right-2-content">
    	    <?php foreach($value['list_hotel'] as $k => $v): ?>
    	    <?php $url = "/hotel/detail/". $v['id'].'-'.str_replace(' ', '-' ,trim($v['name'])).'.html'; ?>
    		<div class="block-list hotel-item">
                <div class="block-list-content">
					<a href="<?php echo $url; ?>"><img class="thumbnail" src="<?php echo $v['thumbnail']; ?>" /></a>
    				<div class="hotel-item-right">
            		    <div class="block-list-title hotel-item-name">
                            <a href="<?php echo $url; ?>" title="<?php echo $v['name']; ?>">
                                <?php echo $this->snippet($v['name'], 50); ?>
                            </a>
                        </div>
            		    <div class="rating" style="width:100%;font-size:11px">
                            <ul class="rating-star">
                                <li><b><?php echo $this->translate('Rating'); ?></b></li>
                                <li>
                                    <a class="rating-star-<?php echo $v['rating']; ?>" href="#" target="_blank">Star1</a>
                                </li>
                            </ul>
                        </div>
            		    <div class="block-list-title hotel-item-address">
                            <?php echo '<b>'.$this->translate('Location').'</b> : <span style="font-size:12px" title="' . $v['address'] . '">'. $this->snippet($v['address'], 80) .'</span>'; ?>
                        </div>
            		    <div class="block-list-title hotel-item-bottom">
                            <?php if($v['best_selling']): ?>
                                <img src="/static/default/images/check.gif" width="13px" height="13px">
                            <?php endif; ?>
                            <?php echo $this->translate('Best_selling').' | '; ?>
                            <?php if($v['special_offer']): ?>
                                <img src="/static/default/images/check.gif" width="13px" height="13px">
                            <?php endif; ?>
                            <?php echo $this->translate('Special_offer'); ?>
                        </div>
    				</div>
                </div>
    		</div>
    		<?php endforeach; ?>
    	</div>
    	<?php endif; ?>
    	<?php endforeach; ?>
    	<?php endif; ?><!-- end detail for region hotel -->

    	<div style="width:100%;height:60px;"></div>
    </div>
    <!-- column right -->
    <div class="span4" id="content-left-2">
        <?php echo $this->partial('/right-render/support.phtml'); ?>
        <div class="clear"></div>
    </div>
</div>